[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
RETURN UPDATE function exit, for switch set:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Syntax:
~~~~~~~
RETURN <Var> UPDATE WITH <Value>
Description:
~~~~~~~~~~~~
The variable <Var> is temporary stored and after it the <Var> is assigned the
<Value> if diferent from NIL and the temporary stored <Var> is restored by
RETURN command.
Example:
~~~~~~~~
FUNCTION MySet(New)
STATIC Old
RETURN Old UPDATE WITH New
Rewriting this code in standard clipper:
FUNCTION MySet(New)
STATIC Old
LOCAL pom:=Old
IF New<>NIL
Old:=New
END
RETURN pom
Source file is Object.ch
See Also:
RETURNIF
BREAKIF
EXITIF
LOOPIF
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson